package com.pactera.miyuangroup.vo.convertor;

import com.pactera.miyuangroup.db.entity.Menu;
import com.pactera.miyuangroup.db.entity.Role;
import com.pactera.miyuangroup.vo.response.web.RoleRes;
import com.pactera.miyuangroup.vo.response.web.TreeMenuRes;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 角色
 *
 * @author Wangwu
 * @create 2018-04-20 下午6:11
 **/
@Mapper(componentModel = "spring")
public interface RoleConvert {

    RoleRes convert2RoleRes(Role obj);

    List<RoleRes> convert2RoleResList(List<Role> obj);
}
